setVolume

fun setVolume(@FloatRange(from = 0.0, to = 1.0) volume: Float)

Sets the volume ads rendered by the SDK are played at. The value replaces the volume requested by the creative rather than scaling it.

Parameters

volume

Volume in the 0.0..1.0 range, where 0.0 is silence and 1.0 is full volume. Values outside of the range are coerced into it, NaN is ignored. Default value is 1.0.